package com.chaihu.intf.admin.menu;

import com.chaihu.bean.in.admin.menu.ListMenusIn;
import com.chaihu.bean.out.admin.menu.ListMenusOut;
import com.chaihu.bean.result.ResponseResult;
import com.chaihu.config.feign.FeignConfiguration;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;


@FeignClient(name = "admin-service", configuration = {FeignConfiguration.class})
@RequestMapping("/admin")
@Api(tags = "admin模块")
public interface ListMenusService {

    @ApiOperation(value = "查询列表")
    @PostMapping("/listMenus")
    ResponseResult<List<ListMenusOut>> listMenus(@RequestBody ListMenusIn in);
}
